package com.ewzj.bigdata.mvp.contract

import android.service.quicksettings.Tile
import com.ewzj.bigdata.mvp.model.reqbean.Reqmaphomelist
import com.ewzj.bigdata.mvp.model.reqbean.Reqpagebean
import com.ewzj.bigdata.mvp.model.rspbean.BaseData
import com.ewzj.bigdata.mvp.model.rspbean.BaseListData
import com.ewzj.bigdata.mvp.model.rspbean.HomeBean
import com.ewzj.bigdata.mvp.model.rspbean.RspHomeData
import com.ewzj.bigdata.mvp.ui.adapter.HomePageAdapter
import com.ewzj.bigdata.mvp.ui.adapter.HourseTypeAdapter
import com.jess.arms.mvp.IModel
import com.jess.arms.mvp.IView
import io.reactivex.Observable

/**
 * author:zhangjing
 * 作用:
 * return:
 */
class MapActivityContract{
    interface View : IView{
          fun addAreMarker(homes:HomeBean)
          fun addHomeMarker(homes:HomeBean)
          fun clearMarker()
          fun changeMapCenter(lon: Double, lat: Double, zoom: Int)
          fun init()
          fun setMylocationData(lat: Double, lon: Double, zoom: Int)
          fun setZoomVisiable(isvisiable:Boolean)
          fun showpopListview(data:BaseData<BaseListData<HomeBean>>,tile: String)
          fun show(boolean: Boolean,title:String)
    }

    interface Model: IModel {
        fun loadNewAreaDatas(): Observable<BaseData<BaseListData<HomeBean>>>
        fun loadOldAreaDatas(): Observable<BaseData<BaseListData<HomeBean>>>
        fun loadRentAreaDatas(): Observable<BaseData<BaseListData<HomeBean>>>
        fun getRentlist(reqmaphomelist: Reqmaphomelist): Observable<BaseData<BaseListData<HomeBean>>>
        fun getershoulist(reqmaphomelist: Reqmaphomelist): Observable<BaseData<BaseListData<HomeBean>>>
    }
}